﻿
@{
    ViewBag.Title = Resources.WebStringsWeb.WebTitle;
    Layout = "~/Views/Shared/_LayoutMobile.cshtml";
}

@section css {
    <style>
        .IsException {
            color: red;
        }

        .IsNormal {
            color: blue;
        }

        .mui-bar ~ .mui-content .mui-scroll-wrapper {
            top: 44px;
            height: auto;
        }
    </style>
}
<header class="mui-bar mui-bar-nav">
    <a id="menu" class="mui-action-menu mui-icon mui-icon-plus mui-pull-right" href="MEventReportFormAdd"></a>
    <a class="mui-icon mui-icon-left-nav mui-pull-left" href="../Home/MenuBar"></a>
    <h1 class="mui-title" style="color:white;">事件报告台账</h1>
</header>
<div class="mui-content">
    <div id="pullrefresh" class="mui-scroll-wrapper">
        <div class="mui-scroll" id="checklist">
            <ul class="mui-table-view mui-table-view-chevron mui-table-view-striped mui-table-view-condensed" ng-cloak ng-controller="EventReportController" ng-init="SearchModel={};
                InitEventReport();">
                <li class="mui-table-view-cell" ng-show="EventReportList.length==0" style="height:150px;text-align:center;">暂无数据</li>
                <li class="mui-table-view-cell" ng-repeat="x in EventReportList" id="{{x.Id}}">
                    <div style="position: absolute; top: 50%; right: 15px; -webkit-transform: translateY(-50%); transform: translateY(-50%);">
                        <span class="mui-icon mui-icon-more"></span>
                    </div>
                    <div class="mui-slider-right mui-disabled">
                        <a class="mui-btn mui-btn-green mui-icon mui-icon-search" href="MEventReportFormDetail?Id={{x.Id}}"></a>
                        <a class="mui-btn mui-btn-blue mui-icon mui-icon-compose" href="MEventReportFormEdit?Id={{x.Id}}"></a>
                        <button class="mui-btn mui-btn-red mui-icon mui-icon-trash" ng-click="MDeleteEventReport(x.Id);"></button>
                    </div>
                    <div class="mui-table mui-slider-handle">
                        <div class="mui-table-cell mui-col-xs-10">
                            <h5 class="mui-ellipsis">事件：{{x.EventContent}}</h5>
                            <p class="mui-h6 mui-ellipsis">场所：{{x.PlaceName}}</p>
                            <p class="mui-h6 mui-ellipsis">上报时间：{{x.ReportTime|JSONDate:'yyyy-MM-dd'}}</p>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>
@section js{
    <script src="~/Assets/js/mui.pullToRefresh.js"></script>
    <script src="~/Assets/js/mui.pullToRefresh.material.js"></script>
    <script src="~/Assets/js/pg/EventReport.js?v=@DateTime.Now.ToString("yyyyMMddHHmm")"></script>

    <script>
        mui.init({
            swipeBack: false,
            keyEventBind: {
                backbutton: false  //关闭back按键监听
            }
        });
                        //mui.showLoading("正在加载..", "div");
                        //setTimeout(function () {
                        //    mui.hideLoading();
                        //}, 2000);


    </script>
}

